#ifndef __GAME_MANAGER__
#define __GAME_MANAGER__

#define ENCRYPT_KEY "flap"
#define HIGH_SCORE_KEY "dcn"
#define HIGH_SCORE_CHECK_KEY "kt"

#include "cocos2d.h"
USING_NS_CC;

class GamePlayLayer;

class GameManager
{
public:
	
	~GameManager();
	static GameManager* getInstance();

	int score;
	int highScore;
	GamePlayLayer* gamePlayLayer;

	void beginGame();
	void loadHighScore();
	void saveHighScore(int highScore);
	void resetGame();
private:
	GameManager();
	static GameManager* instance;
};
#endif // !__GAME_MANAGER__
